2 Content Guides for writing HTML
HTML is declarative.
It won't warn you of a bad markup talkless of a potential bad markup.
This style guide aims to help you avoid issues on the long run.
Avoid nesting Content Windows
Content Windows are mutually exclusive. Only one can be active at a time even if it has descendants. Hence, it's redundant to nest content windows.
Start with this 7-content boilerplate
Every web document should begin with the following 7 contents because of their respective purposes.
In code, you'll be using the following:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><!-- Document Title --></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@toheeb/prose@0.0.0/index.min.css">
<!-- More Content Metas -->
</head>
<body>
<div class="window-primary">
<main>
<!-- Content -->
</main>
<!-- Hidden Main Views -->
</div>
<!-- Secondary Windows -->
</body>
</html>
Expectations
It is expected that you'll do the following:
-
Change the value of the
lang
attribute on thehtml
element to the primary language of the page -
Specify an appropriate Document Title
-
Add more Content Metas as you wish
-
Add Secondary Windows if need be
-
Add hidden Main Views if you so wish
-
Write Content Blocks, optionally through Content Mixes, within the Main View.